projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f07892
)
* configure.ac: Replace obsolete AC_CHECK_HEADER usage. (Bug#46578)
author
Glenn Morris
<rgm@gnu.org>
Wed, 17 Feb 2021 05:25:18 +0000
(21:25 -0800)
committer
Glenn Morris
<rgm@gnu.org>
Wed, 17 Feb 2021 05:25:18 +0000
(21:25 -0800)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 9a294bc796ff78f06d433a09be8e6d20d1e8e51e..11a06a39bee3f3ce933c8e9c54e511994f29fbd7 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1767,7
+1767,8
@@
fi
dnl On Solaris 8 there's a compilation warning for term.h because
dnl it doesn't define 'bool'.
-AC_CHECK_HEADERS(term.h, , , -)
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[#include <term.h>]],[[]])],
+ AC_DEFINE(HAVE_TERM_H, 1, [Define to 1 if you have the <term.h> header file.]))
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS_ONCE(sys/socket.h)